package com.beauty.dressing.rxandroid.api;

import com.beauty.dressing.common.bean.BaseParse;
import com.beauty.dressing.common.bean.User;
import com.beauty.dressing.common.bean.UserInfoBean;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @author xutingz
 * @E-mail xutz@xianlanba.com
 * @date 2018/04/03
 */

public interface MemberApi {

    @FormUrlEncoded
    @POST("forgetPassword")
    Observable<BaseParse<User, Object>> forgetPsd(@FieldMap Map<String, String> map); //验证验证码是否成功

    @FormUrlEncoded
    @POST("editName")
    Observable<BaseParse<Object, Object>> editName(@FieldMap Map<String, String> map); //验证验证码是否成功

    @FormUrlEncoded
    @POST("edit_image")
    Observable<BaseParse<Object, Object>> edit_image(@FieldMap Map<String, String> map); //验证验证码是否成功

    @FormUrlEncoded
    @POST("memberInfo")
    Observable<BaseParse<UserInfoBean, Object>> memberInfo(@FieldMap Map<String, String> map); //验证验证码是否成功

}
